package core.command
{
	import core.event.SocketEventID;
	import core.event.UnoEvent;
	import core.event.ViewEventID;
	
	public class ReadyCommand extends SuperCommand
	{
		public function ReadyCommand()
		{
			socketEvent = SocketEventID.READY_SUCCESS;
			viewEvent = ViewEventID.READY_SUCCESS;
		}
		
		override public function success(e:UnoEvent):void
		{
			db.tableList[db.loginUser.table].userList[e.data.seatID].ready = e.data.ready;
		}
	}
}